import relationalStore from '@ohos.data.relationalStore';

class dict {
  readonly INTERVAL_DELAY_TIME: number = 300000;
  readonly FORM_ID: string = 'formId';
  readonly NAME_KEY: string = 'ohos.extra.param.key.form_name';
  readonly IDENTITY_KEY: string = 'ohos.extra.param.key.form_identity';
  readonly DIMENSION_KEY: string = 'ohos.extra.param.key.form_dimension';
  readonly STORE_CONFIG: relationalStore.StoreConfig = {
    name: 'FormDatabase.db', securityLevel: relationalStore.SecurityLevel.S1, encrypt: false
  };
  readonly FIVE_MINUTES: number = 5;
  readonly MULTIPLY_TEN: number = 10;
  readonly TABLE_NAME: string = 'FormData';
  readonly CREATE_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS FormData ' +
  '(id INTEGER PRIMARY KEY AUTOINCREMENT, formId TEXT NOT NULL, formName TEXT NOT NULL, dimension INTEGER)';
  readonly CACHE_EP_TABLE_NAME: string = 'CacheEpData';
  readonly CACHE_COMIC_TABLE_NAME: string = 'CacheComicData';
  readonly CACHE_EP_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS CacheEpData (id INTEGER PRIMARY KEY AUTOINCREMENT,' +
  ' comicId TEXT NOT NULL, epId TEXT NOT NULL,title TEXT NOT NULL, success INTEGER, failed INTEGER)';
  readonly CACHE_COMIC_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS CacheComicData ' +
  '(id INTEGER PRIMARY KEY AUTOINCREMENT, comicId TEXT NOT NULL, comicName TEXT NOT NULL,cover TEXT NOT NULL)';
  readonly CARD_TABLE_NAME: string = 'CardComicData';
  readonly CARD_TABLE_FORM: string = 'CREATE TABLE IF NOT EXISTS CardComicData(id INTEGER PRIMARY KEY AUTOINCREMENT,' +
  'comicId TEXT NOT NULL, comicName TEXT NOT NULL,cover TEXT NOT NULL,desc TEXT NOT NULL)';
}
export const SHARE_ITEM_ANIMATION_DELAY = 100;
export const SHARE_TRANSITION_ID: string = 'shareId';
export const BUNDLE_NAME = 'com.michael.m_manga';
export const TRANSITION_ANIMATION_DURATION: number = 300;
export default new dict();